﻿<Window x:Class="SaryaAccounting.EditColor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="" Height="257" Width="500" FlowDirection="RightToLeft" Padding="5" Loaded="Window_Loaded" WindowStyle="None" SizeChanged="Window_SizeChanged">
    <Window.Resources>
        <ResourceDictionary>
            <Style x:Key="ButtonStyle" TargetType="{x:Type Button}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid>
                                <Border BorderThickness="1">
                                    <Path x:Name="path" Data="M0.28710935,3.5868225 L1.3359375,3.5868225 L3.515625,6.7626038 L3.5390625,6.7626038 L5.7070313,3.5868225 L6.7675781,3.5868225 L4.1074219,7.4481506 L6.890625,11.426666 L5.8183594,11.426666 L3.5214844,8.1044006 L3.4980469,8.1044006 L1.2011719,11.426666 L0.11718747,11.426666 L2.9238281,7.4247131 z" Fill="#F8FFFFFF" RenderTransformOrigin=".5,.5" Stretch="Fill" Width="8" Height="8">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter TargetName="path" Property="Fill" Value="#FFFFAF00" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="Minimize_ButtonStyle" TargetType="{x:Type Button}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid>
                                <Border BorderThickness="0" />
                                <Rectangle x:Name="rectangle" Fill="#FFF4F4F5" Margin="0,5" Height="2" RadiusY=".656" RadiusX=".656" />
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Fill" TargetName="rectangle" Value="#FFB58110"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ToggleButton}">
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle1">
                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle1">
                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle2">
                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle3">
                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed" />
                                        <VisualState x:Name="Disabled" />
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CheckStates">
                                        <VisualState x:Name="Checked">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="canvas">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}" />
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="canvas1">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unchecked" />
                                        <VisualState x:Name="Indeterminate" />
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border BorderThickness="1">
                                    <Grid>
                                        <Canvas x:Name="canvas" Margin="2.988,2.934,3,3">
                                            <Rectangle x:Name="rectangle" Stroke="White" Width="12" Height="12" Canvas.Left="0.011" Canvas.Top="0.066" />
                                            <Rectangle x:Name="rectangle1" Fill="#FFF4F4F5" Stroke="White" Width="12" Height="4" />
                                        </Canvas>
                                        <Canvas x:Name="canvas1" Margin="2.988,2.934,3,3" Visibility="Collapsed">
                                            <Rectangle x:Name="rectangle2" Stroke="White" Width="8" Height="8" Canvas.Left="1.093" Canvas.Top="0.982" />
                                            <Rectangle x:Name="rectangle3" Stroke="White" Width="8" Height="8" Canvas.Left="2.928" Canvas.Top="2.9" />
                                        </Canvas>
                                    </Grid>
                                </Border>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ResourceDictionary.MergedDictionaries>
                <!--<ResourceDictionary Source="TanmiaControlsStyle.xaml" />-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <TextBlock Height="47" HorizontalAlignment="Left" Margin="41,6,0,0" Name="textBlock1" Text="إضافة لون" VerticalAlignment="Top" FontFamily="Sakkal Majalla" FontSize="36" Width="129" Foreground="#9F000000" />
        <Border BorderBrush="#FF8ACA06" BorderThickness="1" HorizontalAlignment="Left" Margin="5,5,0,5" Name="border1" Width="30" Background="#5D8ACA06" MouseDown="OnDragMoveWindow">
            <StackPanel Orientation="Vertical" FlowDirection="LeftToRight" VerticalAlignment="Bottom">
                <Button x:Name="CloseButton" Content="Button" Height="20" Style="{DynamicResource ButtonStyle}" Width="20" Click="WindowCloseButton_Click" Margin="0,5,0,0" />
                <ToggleButton x:Name="MaxAndNormalButton" Content="ToggleButton" Height="20" Style="{DynamicResource ToggleButtonStyle}" Width="20" Click="WindowMaxAndNormalButton_Click" Margin="0,7" Unchecked="WindowMaxAndNormalButton_Click" />
                <Button x:Name="MinButton" Content="Button" Height="20" Style="{DynamicResource Minimize_ButtonStyle}" Width="20" Click="WindowMinButton_Click" Margin="0,0"/>
            </StackPanel>
        </Border>
        <TextBlock Height="46" Margin="167,12,12,0" Name="textBlock2" Text="بإمكانك إضافة لون من هنا, فإذا قمت بإضافة اللون من خلال هذه النافذة فذلك يعني أن تقوم بإضافة لون مما يعطي في النهاية لون مضاف إلى قائمة الألوان الموجودة لديك." VerticalAlignment="Top" FontFamily="Tahoma" FontSize="11" TextWrapping="Wrap" Foreground="#BD003400" />
        <Rectangle Height="1" Margin="41,59,12,0" Name="rectangle1" Stroke="#FF004A00" VerticalAlignment="Top" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="64,82,0,0" Name="textBlock3" Text="رقم اللون:" VerticalAlignment="Top" Foreground="#BD003400" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="64,116,0,0" Name="textBlock4" Text="اسم اللون:" VerticalAlignment="Top" Foreground="#BD003400" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="64,147,0,0" Name="textBlock5" Text="التمثيل اللوني:" VerticalAlignment="Top" Foreground="#BD003400" />
        <TextBox Height="23" Margin="124,79,58,0" Name="textBox1" VerticalAlignment="Top" />
        <TextBox Height="23" Margin="124,113,58,0" Name="textBox2" VerticalAlignment="Top" />
        <TextBox Height="23" Margin="124,147,58,0" Name="textBox3" VerticalAlignment="Top" />
        <Button Content="إلغاء الأمر" Height="23" Margin="0,190,12,0" Name="button1" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" />
        <Button Content="موافق" IsEnabled="True" Height="23" Margin="0,190,98,0" Name="button2" VerticalAlignment="Top" IsDefault="True" HorizontalAlignment="Right" Width="75" />
    </Grid>
</Window>
